package com.woniu.new_orange.personnel_model_wu.controller;

import com.woniu.new_orange.personnel_model_wu.VO.AccountFundVo;
import com.woniu.new_orange.personnel_model_wu.service.AccountFundService;
import com.woniu.new_orange.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Program: new_orange->AccountFundController
 * @Description:
 * @Author: 13488
 * @Date: 2023-02-07 19:34
 * @Version： 1.0
 **/
@RestController
@RequestMapping("accounFunds")
@Api(tags = "账户资金")
public class AccountFundController {
    @Resource
    private AccountFundService accountFundService;
    @GetMapping("{id}")
    @ApiOperation(value = "/通过userid查找账户资金")
    public Result getAll( @PathVariable Long id ){
       List<AccountFundVo> accountFundVos = accountFundService.selectAll(id);
        return Result.ok().data("accountFundsList",accountFundVos);

    }

}
